import type { XtxGuessInstance } from '@/types/component'
import { ref } from 'vue'

export const useGuessList = () => {
  const guessInstanceRef = ref<XtxGuessInstance>()
  console.log('对象guessInstance为：', guessInstanceRef)

  const onLowestScroll = () => {
    console.log('主页的猜你喜欢推荐区域到底了~~~')
    // guessInstanceRef来调用子组件的增加数据方法
    guessInstanceRef.value?.getMore()
  }
  return { guessInstanceRef, onLowestScroll }
}
